package day03;
//字符串连接符
public class OperDemo5 {
    public static void main(String[] args) {
        //5. 字符串连接符
        int age=40;
        System.out.println(age);
        System.out.println("age=");
        System.out.println("我今年"+age+"岁了");

        String name="张三";//声明字符串类型的变量name,初始化
        System.out.println("我是"+name+"!!!!");
        System.out.println("大家好,我是"+name+",今年"+age+"岁了.");

        for (int i=0;i<=6;i++){
            System.out.println("*");
        }

        System.out.println(10+20+""+30);//3030-----String
        System.out.println(""+10+20+30+30);//10203030--String
        System.out.println(10+20+30+30+"");//90--------String
    }
}
